package userdata;

import database.OperatoerDTO;

public class User {
	
	private int oprId;
	private int oprRole;
	private String oprName;
	private String initials;
	private String cpr;
	private String password;
	
	
	public User () {
		
	}
	
	public int getOprRole() {
		return oprRole;
	}
	public void setOprRole(int oprRole) {
		this.oprRole = oprRole;
	}
	public String getOprName() {
		return oprName;
	}
	public void setOprName(String oprName) {
		this.oprName = oprName;
	}
	public String getInitials() {
		return initials;
	}
	public void setInitials(String initials) {
		this.initials = initials;
	}
	public String getCpr() {
		return cpr;
	}
	public void setCpr(String cpr) {
		this.cpr = cpr;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getOprId() {
		return oprId;
	}
	
	public void setAllData(OperatoerDTO dto) {
		this.oprId = dto.getOprId();
		this.oprRole = dto.getRolle();
		this.oprName = dto.getOprNavn();
		this.initials = dto.getIni();
		this.cpr = dto.getCpr();
		this.password = dto.getKodeord();
	}
}
